package pl.myapp.webtest.servlets;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * Created by IntelliJ IDEA.
 * User: kaafaar
 * Date: 25.10.11
 * Time: 22:04
 * To change this template use File | Settings | File Templates.
 */
@WebServlet(name = "HelloWorldServlet", urlPatterns = {"/helloworldservlet"})
public class HelloWorldServlet extends HttpServlet {
    protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {

    }

    protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        System.out.println("Hello servlet !");
    }
}
